#include "precompiled.h"
#include "EqualTemperament.h"
#include <cmath>

double const twelfth_root_of_2 = std::pow(2, 1.0/12.0);

/*override*/ double EqualTemperament::get_frequency(double reference, int note_id)
{
	return reference * std::pow(twelfth_root_of_2, note_id);
}